package cn.hy.observer;

public class App {
    public static void main(String[] args) {

        WeatherSubject weatherSubject = new WeatherSubject();
        weatherSubject.addObserver(new Hobbits());
        weatherSubject.addObserver(new Orcs());

        for (int i = 0; i < 30; i++) {
            weatherSubject.timePass();
        }
    }
}
